{% load social_tags %}


{% if story.share_count %}
<div class="NB-story-shares">
    <div class="NB-story-comments-shares-teaser-wrapper">
        <div class="NB-story-comments-shares-teaser">
            
            {% if story.comment_count %}
                <div class="NB-story-share-profiles NB-story-share-profiles-comments">
                    <div class="NB-story-share-profiles-shares-friends">
                        {% for comment in story.friend_comments %}
                            {% render_avatars comment.user %}
                        {% endfor %}
                    </div>
                    <div class="NB-story-share-profiles-shares-public">
                        {% for comment in story.public_comments %}
                            {% render_avatars comment.user %}
                        {% endfor %}
                    </div>
                </div>
            {% endif %}
            
            <div class="NB-story-share-label">
                {% if story.comment_count %}
                    {{ story.comment_count }}
                    {{ story.comment_count|pluralize:"Comment,Comments" }}
                    {% if story.share_count != story.comment_count %}
                        and
                    {% endif %}
                {% endif %}
                {% if story.share_count != story.comment_count %}
                    {{ story.share_count }}
                    {{ story.share_count|pluralize:"Share,Shares" }}
                {% endif %}
            </div>
            
            <div class="NB-story-share-profiles NB-story-share-profiles-comments">
                <div class="NB-story-share-profiles-comments-friends">
                    {% render_avatars story.shared_by_friends %}
                </div>
                <div class="NB-story-share-profiles-comments-public">
                    {% render_avatars story.shared_by_public %}
                </div>
            </div>

        </div>
    </div>
</div>
{% endif %}

